package com.itheima.d6_singleInstance;

/**
 * 目标：掌握懒汉式单例的写法。
 */
public class Test2 {
    public static void main(String[] args) {
        //使用懒汉方式，请设计一个老婆单例类
       Wife wife = Wife.getInstance();
        wife.show();
    }
}
